//
//	File Name   :	Dx10Mesh.cpp
//	Description :	Dx10Mesh implementation file.
//	Author		:	William McVicar
//  Mail		:	mcvicar.william@gmail.com
//

//  Precompiled Header
#include "CommonDefines.h"
#ifdef DX10

//  Library Includes

//  Local Includes
#include "VertexFormat.h"

//  This includes
#include "Dx10Mesh.h"

//	Macros

//  Static Variables

//  Static Function Prototypes

//  Implementation

namespace Protein
{

Mesh::Mesh()
: m_pVertexFormat( NULL )
{

}

Mesh::~Mesh()
{

}

void Mesh::SetVertexShader( LPD3D10BLOB _pVSBlob )
{
	m_pVSBlob = _pVSBlob;
	delete m_pVertexFormat;
	m_pVertexFormat = new VertexFormat( m_pVertexFormatBase, m_pVSBlob );
}

VertexFormat* Mesh::vertexFormat()
{
	return m_pVertexFormat;
}

}

#endif